import request from '../utils/request'

export function getUser(data) {
  return request('/getUser', data, 'POST')
}

export function login(data) {
  return request('/wxRegister', data, 'POST')
}

export function createGroup(data) {
  return request('/createGroup', data, 'POST')
}

export function getRoomList() {
  return request('/getRoomList')
}

// 请求签名接口
export function getUserSig(data) {
  return request('/getUserSig', data)
}

// 点赞
export function like(data) {
  return request('/like', data, 'POST')
}

// 送礼记录
export function sendGift(data) {
  return request('/sendGift', data, 'POST')
}

// 关注
export function follow(data) {
  return request('/follow', data, 'POST')
}

// 取消关注
export function unFollow(data) {
  return request('/unfollow', data, 'POST')
}

// 获取个人信息
export function getUserInfo(data) {
  return request('/getUserInfo', data, 'POST')
}

// 获取送礼记录
export function getGiftList(data) {
  return request('/getGiftList', data, 'POST')
}

// 购买了商品
export function buyGoods(data) {
  return request('/buyGoods', data, 'POST')
}

// 改变直播状态
export function changeRoomStatus(data) {
  return request('/changeRoomStatus', data, 'POST')
}